package com.msb.mall.order.dao;

import com.msb.mall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 订单
 * 
 * @author wulongsen
 * @email wulongsen@foxmail.com
 * @date 2024-10-27 21:16:44
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    void updateOrderStatus(String orderSn, Integer status);

    OrderEntity getOrderByOrderSn(String orderSn);

    List<Map<String,Object>> getAllOrderByMemberId(Long memberId);
}
